qualcommax: ipq807x: use ascii-env driver for Linksys MX4200v1
authorChristoph Krapp <[email protected]>
Mon, 10 Nov 2025 22:44:21 +0000 (23:44 +0100)
committerRobert Marko <[email protected]>
Tue, 16 Dec 2025 09:22:33 +0000 (10:22 +0100)
Just like it has already been changed for v2, use the ascii-eq-delim-env
driver to extract the label mac from the devinfo partition.

Signed-off-by: Christoph Krapp <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20732
Signed-off-by: Robert Marko <[email protected]>
target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8174-mx4200.dtsi
target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8174-mx4200v1.dts
target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8174-mx4200v2.dts

index 612ad6b50df2bf032cd4bcd6211d116ad3f3f064..16fd4b5237a94d89e8121cf19c58840de1b4a651 100644 (file)
@@ -3,6 +3,12 @@
 
 #include "ipq8174-mx4x00.dtsi"
 
+/ {
+       aliases {
+               label-mac-device = &dp2;
+       };
+};
+
 &tlmm {
        iot_pins: iot-state {
                recovery-pins {
 &dp2 {
        status = "okay";
        phy-handle = <&qca8075_1>;
+       nvmem-cells = <&hw_mac_addr 0>;
+       nvmem-cell-names = "mac-address";
        label = "wan";
 };
 
 &dp3 {
        status = "okay";
        phy-handle = <&qca8075_2>;
+       nvmem-cells = <&hw_mac_addr 0>;
+       nvmem-cell-names = "mac-address";
        label = "lan1";
 };
 
 &dp4 {
        status = "okay";
        phy-handle = <&qca8075_3>;
+       nvmem-cells = <&hw_mac_addr 0>;
+       nvmem-cell-names = "mac-address";
        label = "lan2";
 };
 
 &dp5 {
        status = "okay";
        phy-handle = <&qca8075_4>;
+       nvmem-cells = <&hw_mac_addr 0>;
+       nvmem-cell-names = "mac-address";
        label = "lan3";
 };
index fb096483573776952e7cca6e70fe66b8b2bd1124..7946e5c54d3d44c2b175e9051780640d6a6f08b3 100644 (file)
@@ -9,13 +9,6 @@
 / {
        model = "Linksys MX4200v1";
        compatible = "linksys,mx4200v1", "qcom,ipq8074";
-
-       aliases {
-               ethernet1 = &dp2;
-               ethernet2 = &dp3;
-               ethernet3 = &dp4;
-               ethernet4 = &dp5;
-       };
 };
 
 &wifi {
index da3af3c75bc12d426d0c9df3d983a65a69844964..44e1b72f16a7cb03cecc9abee3f5e4c26abba487 100644 (file)
@@ -8,30 +8,6 @@
 / {
        model = "Linksys MX4200v2";
        compatible = "linksys,mx4200v2", "qcom,ipq8074";
-
-       aliases {
-               label-mac-device = &dp2;
-       };
-};
-
-&dp2 {
-       nvmem-cells = <&hw_mac_addr 0>;
-       nvmem-cell-names = "mac-address";
-};
-
-&dp3 {
-       nvmem-cells = <&hw_mac_addr 0>;
-       nvmem-cell-names = "mac-address";
-};
-
-&dp4 {
-       nvmem-cells = <&hw_mac_addr 0>;
-       nvmem-cell-names = "mac-address";
-};
-
-&dp5 {
-       nvmem-cells = <&hw_mac_addr 0>;
-       nvmem-cell-names = "mac-address";
 };
 
 &wifi {